/**
 * @author: SEKin
 * @Date: 2025-02-18 16:56:02
 * @description:
 * @Last Modified time: 2025-02-18 16:56:02
 */

import type { IRouterConfig } from 'commons/src/router';


const pageComps = import.meta.glob<typeof import('*.vue')>(
  '../business/**/index.vue'
);
const routerConfig: IRouterConfig = {
  baseUrl: import.meta.env.VITE_BASE_URL_PORTAL,
  pageComps,
  menuStruct: [],
  customRoutes: [
    {
      path: '/',
      redirect: '/login',
    },
    // 登录页
    {
      path: '/login',
      name: 'login',
      component: () => import('../business/login/index.vue'),
    },
    {
      path: '/redirect',
      name: 'redirect',
      component: () => import('../business/redirect/index.vue'),
    },
    // 主页
    {
      path: '/home',
      name: 'home',
      component: () => import('../business/home/index.vue'),
    },
  ],
};
export default routerConfig;
